{extend name="base"}
{block name="title"}账号详情{/block}
{block name="head"}
<style>
.mainbody{margin:0;}
.tab-content{border-top:solid 1px #eee;}
.mytable, .mytable th, .mytable td, .mytable tr{
  border:solid 1px #dcdee2;
  border-collapse:collapse;
}
.mytable th, .mytable td {
  height:34px;
  line-height:34px;
  padding:0 4px;
}
.mytable th {
  background:#f8f8f9;
  font-weight:400;
  text-align:right;
}
.mytable .input{vertical-align:unset;}
</style>
{/block}
{block name="body"}
<body class="mainbody">
<!--内容-->
<div class="tab-content">
<form>
  <table class="mytable">
    <tr>
      <th>AdminID：</th><td>{neq name="AdminID" value="0"}{$AdminID}{else}自动分配{/neq}</td>
      <th>所属角色：</th><td>
        <div class="rule-single-select">
          <select name="RoleID" data-auto="0"><?php $RoleID = $Admin['RoleID'] ?? 0; ?>
            {volist name="ADMIN_ROLES" id='val'}
            <option value="{$key}"{eq name="RoleID" value="$key"} selected{/eq}>[{$key}]{$val}</option>
            {/volist}
          </select>
        </div>
      </td>
    </tr>
    <tr>
      <th>是否禁用：</th><td>
        <div class="rule-single-checkbox">
          <input type="checkbox" name="IsDisabled" value="1"{eq name="Admin.IsDisabled??0" value="1"} checked{/eq} />
        </div>
      </td>
      <th>登陆次数：</th><td>{$Admin.LoginNum??0}</td>
    </tr>
    <tr>
      <th>登陆账号：</th><td>
        <input type="text" class="input txt" autocomplete="off" placeholder="必填" name="UserName" value="{$Admin.UserName??''}" />
      </td>
      <th>登陆密码：</th><td>
        <input type="text" class="input txt" autocomplete="off" placeholder="{$AdminID>0 ? '为空不修改' : '必填'}" name="PassWord" value="" />
      </td>
    </tr>
    <tr>
      <th>昵称：</th><td>
        <input type="text" class="input txt" autocomplete="off" placeholder="必填" name="NickName" value="{$Admin.NickName??''}" />
      </td>
      <th>邮箱：</th><td>
        <input type="text" class="input txt" autocomplete="off" placeholder="可选" name="Email" value="{$Admin.Email??''}" />
      </td>
    </tr>
    <tr>
      <th>手机号码：</th><td>
        <input type="text" class="input txt" autocomplete="off" placeholder="可选" name="Mobile" value="{$Admin.Mobile??''}" />
      </td>
      <th></th><td></td>
    </tr>
    <tr>
      <th>登陆IP：</th><td>{$Admin.LastLoginIP??''}</td>
      <th>登陆时间：</th><td>{$Admin.LastLoginTime??''}</td>
    </tr>
  </table>
</form>
</div>
<!--/内容-->
</body>
{/block}